package enemies;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.doge.*;
import com.doge.Character;

public class MovingFireball extends Character
{	
	public MovingFireball( TextureRegion t, Tile position){
		super(t,position);

		name = "Moving Fireball";
				
		health = 200;
		dogeCoins = 200;
		/*name, statamt, stat(0 = dmg, 1 = healing), energyreq*/
		battleActions.add(new BattleAction("Move",10,0,50));
		battleActions.add(new BattleAction("Move Faster",25,0,20));
		battleActions.add(new BattleAction("Move Fastest",60,0,0));
		battleActions.add(new BattleAction("Slow Down",0,0,0));
	}
	
	public MovingFireball( Tile position){
		this(Textures.movingFireball, position);
	}
	
	public BattleAction getNextAction()
	{
		if(energyRegen == 15 && energy > 50)
		{
			energyRegen = 10;
			return battleActions.get(0);
		}
		else if(energyRegen == 0)
		{
			energyRegen = 30;
			return battleActions.get(3);
		}
		else if(energyRegen <= 10)
		{
			energyRegen = 5;
			return battleActions.get(1);
		}
		else if(energyRegen <=5)
		{
			energyRegen = 0;
			return battleActions.get(1);
		}
		else
		{
			energyRegen = 15;
			return battleActions.get(3);
		}

	}
}
